import { createRouter, createWebHistory } from 'vue-router';
const Login = () => import('../views/Login.vue');
const MainLayout = () => import('../layouts/MainLayout.vue');
const Dashboard = () => import('../views/Dashboard.vue');
const Timeline = () => import('../views/Timeline.vue');
const Stats = () => import('../views/Stats.vue');
const Gallery = () => import('../views/Gallery.vue');
const Settings = () => import('../views/Settings.vue');
const routes = [
    { path: '/login', name: 'login', component: Login },
    {
        path: '/',
        component: MainLayout,
        children: [
            { path: '', name: 'dashboard', component: Dashboard },
            { path: 'timeline', name: 'timeline', component: Timeline },
            { path: 'stats', name: 'stats', component: Stats },
            { path: 'gallery', name: 'gallery', component: Gallery },
            { path: 'settings', name: 'settings', component: Settings }
        ]
    }
];
const router = createRouter({
    history: createWebHistory(),
    routes
});
export default router;
